/**
 * nghilt
 * 2011/09/26
 *
 * Copyright by N&N.,Inc
 */
package at.com.vn.chess.util;

import java.awt.Point;

/**
 *
 */
/**
 * @author nghilt
 * 2011/10/14
 */
public class Const {

	public static final String IMAGE_DIR = "image/";
	public static final String IMAGE_EXT = ".png";
	public static final String BACKGROUND_IMAGE = "image/banco.png";

	public static final int GLOBAL_BOARD_ROW = 11;
	public static final int GLOBAL_BOARD_COL = 21;
	public static final int ACTIVE_BOARD_ROW = 9;
	public static final int ACTIVE_BOARD_COL = 17;
	public static final int REAL_BOARD_ROW = 9;
	public static final int REAL_BOARD_COL = 9;

	/**
	 * Dai 1071
	 */
	public static final int DIALOG_WIDTH = 51 * GLOBAL_BOARD_COL;
	/**
	 * Rong 605
	 */
	public static final int DIALOG_HEIGHT = 55 * GLOBAL_BOARD_ROW;

	public static final int DIALOG_TITLE_HEIGHT = 30;

	public static final int PIECES_NUM = 40;

	/**
	 * Dem nguoc 10 phut
	 */
	public static final int ONE_SECOND = 1000;
	public static final int ONE_MINUTE = 60 * ONE_SECOND;
	public static final int COUNT_DOWN_START_POINT_TOTAL = 60 * ONE_MINUTE;
	public static final int COUNT_DOWN_START_POINT_PRIVATE = 5 * ONE_MINUTE;

	public static final int VUNG_PHONG_QUAN_ROW = 3;

	public static final int VUNG_BAT_QUAN_ROW = 3;
	public static final int VUNG_BAT_QUAN_COL = 3;

	public static final Point SYMMETRY_POINT = new Point( 4, 8 );

	public static final int TRUE = 1;
	public static final int FALSE = 0;

	public static final int JOINED = 0;
	public static final int NOT_JOINED = 1;

	public static final int UNDEFINE_VALUE = 9999;

	public static final String PACKAGE_NAME = "vn.nnn.shogi.quanco.";

	public static final String STATUS_IDLE = "idle";
	public static final String STATUS_WAIT = "wait";
	public static final String STATUS_RUN = "running";
	public static final String STATUS_END = "end";

	public static final String PLAYER_NAME_BLANK = "blank";

	public static final String BUTTON_LABEL_NHAP = "Nhập";
	public static final String BUTTON_LABEL_XUAT = "Xuất";

	public static final String SERVICE_POPULAR_RELOGIN = "Popular_relogin";
	public static final String SERVICE_CHAT_PUBLIC = "ChatPublic_";
	public static final String SERVICE_DO_CHESS_TABLE = "DoChessTable_";
	public static final String SERVICE_CHAT_PRIVATE = "ChatPrivate_";
	public static final String SERVICE_PLAY_SHOGI = "PlayShogi_";
	public static final String SERVICE_LEAVE_SHOGI = "LeaveShogi_";

	public static final String PROCESS_CHAT_PUBLIC_CHAT = SERVICE_CHAT_PUBLIC + "chat";
	public static final String PROCESS_CHAT_PUBLIC_LEFT = SERVICE_CHAT_PUBLIC + "left";
	public static final String PROCESS_CHAT_PUBLIC_JOIN = SERVICE_CHAT_PUBLIC + "join";
	public static final String PROCESS_DO_CHESS_TABLE_LEFT = SERVICE_DO_CHESS_TABLE + "left";
	public static final String PROCESS_DO_CHESS_TABLE_JOIN = SERVICE_DO_CHESS_TABLE + "join";
	public static final String PROCESS_DO_CHESS_TABLE_ADD_CHESS_TABLE = SERVICE_DO_CHESS_TABLE + "add_chess_table";
	public static final String PROCESS_DO_CHESS_TABLE_GET_CHESS_TABLE = SERVICE_DO_CHESS_TABLE + "get_chess_table";
	public static final String PROCESS_DO_CHESS_TABLE_REFRESH = SERVICE_DO_CHESS_TABLE + "refresh";
	public static final String PROCESS_DO_CHESS_TABLE_CLICK_LINK_CHESS_TABLE = SERVICE_DO_CHESS_TABLE + "click_link_chess_table";
	public static final String PROCESS_CHAT_PRIVATE_JOIN = SERVICE_CHAT_PRIVATE + "join";
	public static final String PROCESS_CHAT_PRIVATE_CHAT = SERVICE_CHAT_PRIVATE + "chat";
	public static final String PROCESS_CHAT_PRIVATE_LEFT = SERVICE_CHAT_PRIVATE + "left";

	public static final String PROCESS_PLAY_SHOGI_JOIN = SERVICE_PLAY_SHOGI + "join";
	public static final String PROCESS_PLAY_SHOGI_PLAY = SERVICE_PLAY_SHOGI + "play";
	public static final String PROCESS_LEAVE_SHOGI_LEFT = SERVICE_LEAVE_SHOGI + "left";

	public static final String PROCESS_PLAY_SHOGI_SIT_TO_TABLE = SERVICE_PLAY_SHOGI + "sit_to_table";
	public static final String PROCESS_PLAY_SHOGI_LEFT_TO_TABLE = SERVICE_PLAY_SHOGI + "left_to_table";
	public static final String PROCESS_PLAY_SHOGI_WIN_LOSE_ACTION = SERVICE_PLAY_SHOGI + "win_lose_action";
	public static final String PROCESS_PLAY_SHOGI_GET_HISTORY = SERVICE_PLAY_SHOGI + "getHistory";
	public static final String PROCESS_PLAY_SHOGI_RESET_BOARD = SERVICE_PLAY_SHOGI + "reset_board";


	public static final String HISTORY_PROCESS = "Hist";

	public static final String WEB_PARAM_SERVER_URL_BASE = "UrlBase";
	public static final String WEB_PARAM_ROOM_ID = "RoomID";
	public static final String WEB_PARAM_USER_ID = "UserID";
	public static final String FONT_PUBLIC_CHAT = "Verdana";

	public static final String PRIVATE_CHAT_TITLE = " private chat on chess table";
	public static final int STOP_WATCH_FONT_SIZE = 14;
	public static final String SEPERATE_MARK_FOR_LEAVE = "j_k_l";
	public static final String SEPERATE_MARK_FOR_PLAY = "q_w_e";
	public static final String SEPERATE_MARK_OF_HISTORY = "z_x_c";
	public static final String URL_CHESS_APPLICATION = "http://localhost:8080/shogi";
//	public static final String URL_CHESS_APPLICATION = "http://localhost:8080/ChessApplication";
	// TODO comment out when upload on server
//	public static final String URL_CHESS_APPLICATION = "http://www.shogi.vn/chat.htm";
	public static final String SHOGI_TABLE_TITLE = "Chess Management";
	public static final String BUTTON_SEND_FEELING = "Send Feelings";
	// Advanced Components
	public static final String FEELING[] = { "I Feel ...", "Sad", "Happy", "Angry", "Love",
			"Cool", "Sorry", "Thankful" };
}
